﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;

using iLangl.BusinessModel.Managers;
using iLangl.BusinessModel.Actions;

namespace iLangl.Tests.TPFixture
{
	[TestClass]
	public class GetWorkAreasTest : BaseTest
	{
		[TestMethod]
		public void GetWorkAreasT()
		{
			SwitchToILanglSideForTP();

			GetWorkAreas workareas = new GetWorkAreas();
			//Languagewire CompanyId 
			ActionManager.Instance.PrepareAction(TestSettings.LanguageWireCompanyId, workareas);

			workareas.Execute();

			Assert.IsNotNull(workareas.Workareas);

			Assert.IsTrue(workareas.Workareas.Count > 0);
		}
	}
}
